package cn.sxt.service.impl;

import cn.sxt.dao.PaymentDao;
import cn.sxt.entities.Payment;
import cn.sxt.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Mxb
 * @version 1.0
 * @date 2020/4/24 7:33
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    private PaymentDao paymentDao;
    @Override
    public int add(Payment payment) {
        return paymentDao.add(payment);
    }

    @Override
    public Payment findPaymentById(Long id) {
        return paymentDao.findPaymentById(id);
    }
}
